home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / Generic.h,v < prev    next >
Text File  |  1989-05-04  |  2KB  |  116 lines

  1. head     3.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:3.2; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 3.2
  10. date     89.02.20.15.34.37;  author grunwald;  state Exp;
  11. branches ;
  12. next     3.1;
  13.  
  14. 3.1
  15. date     88.12.20.13.49.47;  author grunwald;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     88.10.30.13.05.43;  author grunwald;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     88.09.18.16.42.05;  author grunwald;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @@
  32.  
  33.  
  34. 3.2
  35. log
  36. @Start using Gnu library heaps for schedulers
  37. @
  38. text
  39. @// This may look like C code, but it is really -*- C++ -*-
  40. // 
  41. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  42. //
  43. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  44. //
  45. #if defined(__GNU__)
  46. /*
  47.  *    See the CPP manual, argument prescan section for explination
  48.  *    of this crap.
  49.  */
  50. #define GENERIC2(a,b) gEnErIc2(a,b)
  51. #define gEnErIc2(a,b) a ## b
  52.  
  53. #define GENERIC3(a,b,c) gEnErIc3(a,b,c)
  54. #define gEnErIc3(a,b,c) a ## b ## c
  55.  
  56. #define GENERIC4(a,b,c,d) gEnErIc4(a,b,c,d)
  57. #define gEnErIc4(a,b,c,d) a ## b ## c ## d
  58.  
  59. #define GENERIC_STRING(a) gEnErIcStRiNg(a)
  60. #define gEnErIcStRiNg(a) #a
  61.  
  62. #else
  63. #if defined(sun)
  64.  
  65. #define GENERIC2(a,b)    a/**/b
  66. #define GENERIC3(a,b,c)    a/**/b/**/c
  67. #define GENERIC4(a,b,c,d)    a/**/b/**/c/**/d
  68. #define GENERIC_STRING(a) "\
  69. a \
  70. "
  71. #else
  72. #if defined(BSD)
  73. #define GENERIC2(a,b) a\
  74. b
  75. #define GENERIC3(a,b,c) a\
  76. b\
  77. c
  78. #define GENERIC4(a,b,c,d) a\
  79. b\
  80. c\
  81. d
  82. #define GENERIC_STRING(a) "\
  83. a \
  84. "
  85. #else
  86.     I do not know how to make GENERICs for your machine
  87. #endif BSD
  88. #endif SUN
  89. #endif GNU
  90. @
  91.  
  92.  
  93. 3.1
  94. log
  95. @Steay version
  96. @
  97. text
  98. @@
  99.  
  100.  
  101. 1.2
  102. log
  103. @*** empty log message ***
  104. @
  105. text
  106. @@
  107.  
  108.  
  109. 1.1
  110. log
  111. @Initial revision
  112. @
  113. text
  114. @d1 6
  115. @
  116.